import request from '@/utils/request'

// 查询用户邀请记录列表
export function listInviteRecord(query) {
  return request({
    url: '/biz/inviteRecord/list',
    method: 'get',
    params: query
  })
}



// 查询用户关系列表
export function listUserRelationship(query) {
  return request({
    url: '/biz/inviteRecord/userRelationshipList',
    method: 'get',
    params: query
  })
}


// 查询用户邀请记录详细
export function getInviteRecord(id) {
  return request({
    url: '/biz/inviteRecord/' + id,
    method: 'get'
  })
}

// 新增用户邀请记录
export function addInviteRecord(data) {
  return request({
    url: '/biz/inviteRecord',
    method: 'post',
    data: data
  })
}

// 修改用户邀请记录
export function updateInviteRecord(data) {
  return request({
    url: '/biz/inviteRecord',
    method: 'put',
    data: data
  })
}

// 删除用户邀请记录
export function delInviteRecord(id) {
  return request({
    url: '/biz/inviteRecord/' + id,
    method: 'delete'
  })
}

// 启用禁用用户邀请记录
export function changeStatus(data) {
  return request({
    url: '/biz/inviteRecord/changeStatus',
    method: 'put',
    data: data
  })
}
